package demo6;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.lang.reflect.AnnotatedArrayType;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext  context
                = new AnnotationConfigApplicationContext("demo6");
                Person person1 = context.getBean(Person.class);
                Person person2 = context.getBean(Person.class);
        System.out.println(person1);
        System.out.println(person2);

    }
}
